package com.accp.ssmoa.service;

import java.util.List;

import com.accp.ssmoa.pojo.Department;

public interface DepartmentService {

	//构建json格式部门信息树形菜单
	public List<Object> getDepartmentsTree();
	
	//获取部门分页信息
	public List<Department> getPageDepartment(Integer startRow,
				Integer pageSize,Integer parentmentId);
	
	//获取总数据条数
	public int getTotalsize(Integer parentmentId);
	
	
	//根据id获取机构及其父机构信息
	public Department getDepartmentById(Integer id);
	
	//实现添加
	public int save(Department department);
	
	
	//实现修改
	public int update(Department department);
	
	//实现删除
	public int delete(List<Integer> ids);
	
	
}
